package org.starti.metadata;

import org.starti.metadata.exception.NoMetadataFoundException;

import java.lang.reflect.AnnotatedElement;


/**
 * Offer access to all registred metadata.
 *
 * @author <a href="mailto:claudiu.dumitrescu@gmail.com">Claudiu Dumitrescu</a>
 */
public interface MetadataManager {
    /**
     * Get a Metadata object.
     *
     * @return Metadata created.
     * @throws NoMetadataFoundException if <code>element</code> is not known
     */
    Metadata getMetadata(AnnotatedElement element) throws NoMetadataFoundException;

}
